Relational data models in R {https://t.co/Bwt46eDKsO} #rstats #DataScience
— R-bloggers (@Rbloggers) May 20, 2021
Strong random forests with XGBoost {https://t.co/8qEEepSwu1} #rstats #DataScience
— R-bloggers (@Rbloggers) May 21, 2021
How to find dataset differences in R Quickly Compare Datasets {https://t.co/tU2Bjh416q} #rstats #DataScience
— R-bloggers (@Rbloggers) May 25, 2021
Build and improve a Machine Learning Classification model with TidyModels and R {https://t.co/lNBLmSpyHm} #rstats #DataScience
— R-bloggers (@Rbloggers) May 25, 2021
Relational data models in R {https://t.co/wu1BYfpzYw} #rstats #DataScience
— R-bloggers (@Rbloggers) May 24, 2021
apply family in r apply(), lapply(), sapply(), mapply() and tapply() {https://t.co/ubD3mke6ZS} #rstats #DataScience
— R-bloggers (@Rbloggers) May 20, 2021
Stringr in r 10 data manipulation Tips and Tricks {https://t.co/k0TJ1zUdng} #rstats #DataScience
— R-bloggers (@Rbloggers) May 24, 2021
gghalves: Make Half Boxplot | Half Dotplot Visualizations with ggplot2 {https://t.co/SvKjwKuxWR} #rstats #DataScience
— R-bloggers (@Rbloggers) May 25, 2021
Shiny App in Docker with HTTP Authentication {https://t.co/Aqo1s0GnsP} #rstats #DataScience
— R-bloggers (@Rbloggers) May 22, 2021
pipe operator in R-Simplify Your Code with %>% {https://t.co/6aODfISFF1} #rstats #DataScience
— R-bloggers (@Rbloggers) May 19, 2021
Fitbit Visualizations using the ‘fitbitViz’ R package {https://t.co/PZqZq5ndsA} #rstats #DataScience
— R-bloggers (@Rbloggers) May 20, 2021
Seasonal Adjustment of Multiple Series {https://t.co/mbRkowT5vp} #rstats #DataScience
— R-bloggers (@Rbloggers) May 23, 2021
Sentiment analysis in R {https://t.co/HoyxGDHj7J} #rstats #DataScience
— R-bloggers (@Rbloggers) May 16, 2021
Visualization Graphs-ggside with ggplot {https://t.co/kRY5wVY2VN} #rstats #DataScience
— R-bloggers (@Rbloggers) May 12, 2021
Timeseries analysis in R {https://t.co/tgIfXXNW8V} #rstats #DataScience
— R-bloggers (@Rbloggers) April 26, 2021
Text Analysis with R {https://t.co/Bn4k0cwfhj} #rstats #DataScience
— R-bloggers (@Rbloggers) May 15, 2021
Linear Discriminant Analysis in R {https://t.co/O9gpvQkXWY} #rstats #DataScience
— R-bloggers (@Rbloggers) May 2, 2021
GitHub With R {https://t.co/ZC5n2jnMAO} #rstats #DataScience
— R-bloggers (@Rbloggers) May 16, 2021
Principal component analysis (PCA) in R {https://t.co/68xX2eIANs} #rstats #DataScience
— R-bloggers (@Rbloggers) May 7, 2021
Power analysis in Statistics with R {https://t.co/0Efo5vrjdd} #rstats #DataScience
— R-bloggers (@Rbloggers) May 8, 2021
New features in R 4.1.0 {https://t.co/wmYN0OHixh} #rstats #DataScience
— R-bloggers (@Rbloggers) May 18, 2021
Awesome R Markdown Word report with programmatically inserted headings, outputs and… {https://t.co/5azjRGpeUv} #rstats #DataScience
— R-bloggers (@Rbloggers) May 15, 2021
Random Forest Feature Selection {https://t.co/WZjgudS5Mx} #rstats #DataScience
— R-bloggers (@Rbloggers) May 3, 2021
Animated Graph GIF with gganimate & ggplot {https://t.co/MBYEaTYied} #rstats #DataScience
— R-bloggers (@Rbloggers) May 15, 2021
---
title: "RBloggers Top Tweets"
output:
flexdashboard::flex_dashboard:
vertical_layout: scroll
source_code: embed
theme:
version: 4
bootswatch: yeti
css: styles/main.css
---
```{r setup, include=FALSE}
library(flexdashboard)
library(dplyr)
library(httr)
library(lubridate)
library(jsonlite)
library(purrr)
rbloggers <- fromJSON("data/rbloggers.json")
get_tweet_embed <- function(user, status_id) {
url <-
stringr::str_glue(
"https://publish.twitter.com/oembed?url=https://twitter.com/{user}/status/{status_id}&partner=&hide_thread=false"
)
response <- GET(url) %>%
content()
return(shiny::HTML(response$html))
}
```
Column {.tabset .tabset-fade}
-----------------------------------------------------------------------
### Top Tweets - 7 days {.tweet-wall}
```{r}
rblog_7 <- rbloggers %>%
mutate(created_at = as_date(created_at)) %>%
filter(created_at %within% interval(start = today() - 7, end = today())) %>%
slice_max(favorite_count + retweet_count, n = 12)
rblog_7_html <-
map2_chr(rblog_7$screen_name, rblog_7$status_id, get_tweet_embed)
shiny::HTML(stringr::str_glue("{rblog_7_html}"))
```
### Top Tweets - 30 days {.tweet-wall}
```{r}
rblog_30 <- rbloggers %>%
mutate(created_at = as_date(created_at)) %>%
filter(created_at %within% interval(start = today() - 30, end = today())) %>%
slice_max(favorite_count + retweet_count, n = 12)
rblog_30_html <-
map2_chr(rblog_30$screen_name, rblog_30$status_id, get_tweet_embed)
shiny::HTML(stringr::str_glue("{rblog_30_html}"))
```